﻿<?xml version="1.0"?>
<shellConfig Version="0.3.0" FontFamily="Tahoma">
  <configurations>
    <!-- at runtime the startup code will set the active configuration based on actual screen resolution 
          if no configuration matches it will stick with teh default configuration -->
    <configuration Name="Active" Width="240" Height="320">
      <font Scale="1.0"/>
      <buttons Size="48" SmallIcons="false"/>
    </configuration>
    <configuration Name="VGA Square" Width="480" Height="480">
      <font Scale="0.65"/>
      <buttons Size="48" SmallIcons="true"/>
    </configuration>
    <configuration Name="QVGA" Width="320" Height="320">
      <font Scale="0.80"/>
      <buttons Size="48" SmallIcons="true"/>
    </configuration>
    <configuration Name="VGA" Width="480" Height="640">
      <font Scale="0.65"/>
      <buttons Size="48" SmallIcons="false"/>
    </configuration>
  </configurations>
  <host TimeOut="120000">
    <widget Name="Status" Type="iPhoneUI.Widgets.TopBar, iPhoneUI.Widgets, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null" Snap="Top"/>
  </host>
  <!-- the page with the name of Home has special meaning and it is the only page name referenced in code -->
  <page Name="Home" Image="wallpaper.bmp" Type="iPhoneUI.HomePage">
    <property Name="DragNavigate">false</property>
    <widgetRef Name="Status">
      <property Name="Locked">true</property>
    </widgetRef>
    <widget Name="DateTime" Type="iPhoneUI.Widgets.DateTimeWidget, iPhoneUI.Widgets, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null" Snap="Top">
      <property Name="Decorations">
        <list OfType="iPhoneUI.Widgets.Widget">
          <object Type="iPhoneUI.Widgets.MessagingStatus, iPhoneUI.Widgets, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null">
            <property Name="Decorations">
              <list OfType="iPhoneUI.Widgets.Widget">
                <object Type="iPhoneUI.Widgets.MessagingStatusItem, iPhoneUI.Widgets, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null">
                  <property Name="ImageName">mailbox_full.png</property>
                  <property Name="SystemProperty">MessagingTotalEmailUnread</property>
                </object>
                <object Type="iPhoneUI.Widgets.MessagingStatusItem, iPhoneUI.Widgets, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null">
                  <property Name="ImageName">message.png</property>
                  <property Name="SystemProperty">MessagingSmsUnread</property>
                </object>
                <object Type="iPhoneUI.Widgets.MessagingStatusItem, iPhoneUI.Widgets, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null">
                  <property Name="ImageName">phone.png</property>
                  <property Name="SystemProperty">PhoneMissedCalls</property>
                </object>
                <object Type="iPhoneUI.Widgets.MessagingStatusItem, iPhoneUI.Widgets, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null">
                  <property Name="ImageName">voicemailindicator.png</property>
                  <property Name="SystemProperty">MessagingVoiceMailTotalUnread</property>
                </object>
              </list>
            </property>
          </object>
        </list>
      </property>
    </widget>
    <widget Name="Appointments" Type="iPhoneUI.Widgets.Appointments, iPhoneUI.Widgets, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null" Snap="Fill">
      <property Name="AppointmentImage">calendar.png</property>
      <property Name="ForeColor">LightGoldenrodYellow</property>
    </widget>
    <widget Name="UnlockSlider" Type="iPhoneUI.Widgets.UnlockSlider, iPhoneUI.Widgets, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null" Snap="Bottom">
      <property Name="UnlockPage">
        <select>
          <text>ancestor::page/following-sibling::page/@Name</text>
        </select>
      </property>
    </widget>
  </page>
  <page Name="MainLauncher" Image="wallpaper.bmp" BackgroundAlpha="70">
    <widgetRef Name="Status">
      <property Name="Locked">false</property>
    </widgetRef>
    <property Name="NextPage">
      <select>
        <text>ancestor::page/following-sibling::page/@Name</text>
      </select>
    </property>
    <!-- The app mappings below work on a Sprint HTC Touch -->
    <widget Name="AppBar" Type="iPhoneUI.Widgets.ButtonGrid" Snap="Bottom">
      <property Name="BackgroundImageName">dock.png</property>
      <property Name="TopPadding">8</property>
      <property Name="UseSmallIcons">
        <select>
          <text>//configuration[@Name='Active']/buttons/@SmallIcons</text>
        </select>
      </property>
      <property Name="ButtonSize">
        <select>
          <text>//configuration[@Name='Active']/buttons/@Size</text>
        </select>
      </property>
      <property Name="Buttons">
        <list OfType="iPhoneUI.Widgets.IImageButton">
          <object>
            <property Name="ImageName">phone_s.png</property>
            <property Name="SystemProperty">PhoneMissedCalls</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="FullPath">\windows\cprog.exe</property>
              </object>
            </property>
          </object>
          <object>
            <property Name="ImageName">blue_blank.png</property>
            <property Name="OverlayImageName">voicemailbutton.png</property>
            <property Name="SystemProperty">MessagingVoiceMailTotalUnread</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.MakeCallCmdLet">
                <!-- without a supplied phone number this cmdlet will dial the device's number -->
                <!-- uncomment the following if your service's voice mail number is not the same as your phone number -->
                <!-- 
                <property Name="PhoneNumber"></property>
                -->
              </object>
            </property>
          </object>
          <object>
            <property Name="ImageName">mail_s.png</property>
            <property Name="SystemProperty">MessagingTotalEmailUnread</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="FullPath">\Windows\tMail.exe</property>
              </object>
            </property>
          </object>
          <object>
            <property Name="ImageName">blue_blank.png</property>
            <property Name="OverlayImageName">lock2.png</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.NavigationCmdLet">
                <property Name="Page">Home</property>
              </object>
            </property>
          </object>
        </list>
      </property>
    </widget>
    <widget Name="PageNavigator" Type="iPhoneUI.Widgets.PageNavigator" Snap="Bottom">
      <property Name="Count">
        <select>
          <count>/shellConfig/page[@Name != 'Home']</count>
        </select>
      </property>
      <property Name="CurrentIndex">
        <select>
          <position-of node-select="ancestor::page" list-select="/shellConfig/page[@Name != 'Home']"/>
        </select>
      </property>
    </widget>
    <widget Name="ButtongGrid" Type="iPhoneUI.Widgets.ButtonGrid" Snap="Fill">
      <property Name="UseSmallIcons">
        <select>
          <text>//configuration[@Name='Active']/buttons/@SmallIcons</text>
        </select>
      </property>
      <property Name="ButtonSize">
        <select>
          <text>//configuration[@Name='Active']/buttons/@Size</text>
        </select>
      </property>
      <property Name="Buttons">
        <list OfType="iPhoneUI.Widgets.IImageButton">
          <object>
            <property Name="Text">Contacts</property>
            <property Name="ImageName">contacts.png</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="FullPath">\Windows\Start Menu\Contacts.lnk</property>
              </object>
            </property>
          </object>
          <object>
            <property Name="Text">Calendar</property>
            <property Name="ImageName">cal_blank_s.png</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="FullPath">\Windows\Calendar.exe</property>
              </object>
            </property>
            <property Name="Decorations">
              <list OfType="iPhoneUI.Widgets.Widget">
                <object Type="iPhoneUI.Widgets.CalendarButtonDecorator, iPhoneUI.Widgets, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null">
                  <property Name="ForeColor">Black</property>
                </object>
              </list>
            </property>
          </object>
          <object>
            <property Name="Text">Photos</property>
            <property Name="ImageName">wallpaper_s.png</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="FullPath">\Windows\Start Menu\Programs\Pictures &amp; Videos.lnk</property>
              </object>
            </property>
          </object>
          <object>
            <property Name="Text">Camera</property>
            <property Name="ImageName">photo_s.png</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="FullPath">\Windows\Camera.lnk</property>
              </object>
            </property>
          </object>
          <object>
            <property Name="Text">Calculator</property>
            <property Name="ImageName">calc_s.png</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="FullPath">\windows\MobileCalculator.exe</property>
              </object>
            </property>
          </object>
          <object>
            <property Name="Text">Media</property>
            <property Name="ImageName">ipod_s.png</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="FullPath">\windows\WMPlayer.exe</property>
              </object>
            </property>
          </object>
          <object>
            <property Name="Text">Internet</property>
            <property Name="ImageName">browser_s.png</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="FullPath">\windows\iExplore.exe</property>
              </object>
            </property>
          </object>
          <object>
            <property Name="Text">Text Messages</property>
            <property Name="ImageName">sms_s.png</property>
            <property Name="SystemProperty">MessagingSmsUnread</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="Arguments">-service "SMS"</property>
                <property Name="FullPath">\windows\tMail.exe</property>
              </object>
            </property>
          </object>
          <object>
            <property Name="Text">Notes</property>
            <property Name="ImageName">notes_s.png</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="FullPath">\windows\Notes.exe</property>
              </object>
            </property>
          </object>
          <object>
            <property Name="Text">Clock</property>
            <property Name="ImageName">clock_s.png</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="FullPath">\windows\clock.exe</property>
              </object>
            </property>
          </object>
          <object>
            <property Name="Text">Maps</property>
            <property Name="ImageName">map_s.png</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="FullPath">\Program Files\Live Search\LiveSearch.exe</property>
              </object>
            </property>
          </object>
          <object>
            <property Name="Text">Settings</property>
            <property Name="ImageName">tools_s.png</property>
            <property Name="CmdLet">
              <object Type="iPhoneUI.Commands.StartProcessCmdLet">
                <property Name="FullPath">\windows\taskmanagerapp.exe</property>
              </object>
            </property>
          </object>
        </list>
      </property>
    </widget>
  </page>
  <page Name="Programs" Image="wallpaper.bmp" BackgroundAlpha="70">
    <widgetRef Name="Status">
      <property Name="Locked">false</property>
    </widgetRef>
    <property Name="PreviousPage">
      <select>
        <text>ancestor::page/preceding-sibling::page[1]/@Name</text>
      </select>
    </property>
    <property Name="NextPage">
      <select>
        <text>ancestor::page/following-sibling::page/@Name</text>
      </select>
    </property>
    <widget Name="PageNavigator" Type="iPhoneUI.Widgets.PageNavigator" Snap="Bottom">
      <property Name="Count">
        <select>
          <count>/shellConfig/page[@Name != 'Home']</count>
        </select>
      </property>
      <property Name="CurrentIndex">
        <select>
          <position-of node-select="ancestor::page" list-select="/shellConfig/page[@Name != 'Home']"/>
        </select>
      </property>
    </widget>
    <widget Name="ButtongGrid" ButtonImage="blue_blank.png" Type="iPhoneUI.Widgets.ButtonGrid" Snap="Fill">
      <targetFolder>\Windows\Start Menu\Programs\</targetFolder>
      <ignore>iPhone UI.lnk</ignore>
      <property Name="UseSmallIcons">
        <select>
          <text>//configuration[@Name='Active']/buttons/@SmallIcons</text>
        </select>
      </property>
      <property Name="ButtonSize">
        <select>
          <text>//configuration[@Name='Active']/buttons/@Size</text>
        </select>
      </property>
      <property Name="Buttons">
        <list OfType="iPhoneUI.Widgets.IImageButton"></list>
      </property>
    </widget>
  </page>
  <page Name="Games" Image="wallpaper.bmp" BackgroundAlpha="70">
    <widgetRef Name="Status">
      <property Name="Locked">false</property>
    </widgetRef>
    <property Name="PreviousPage">
      <select>
        <text>ancestor::page/preceding-sibling::page[1]/@Name</text>
      </select>
    </property>
    <property Name="NextPage">
      <select>
        <text>ancestor::page/following-sibling::page/@Name</text>
      </select>
    </property>
    <widget Name="PageNavigator" Type="iPhoneUI.Widgets.PageNavigator" Snap="Bottom">
      <property Name="Count">
        <select>
          <count>/shellConfig/page[@Name != 'Home']</count>
        </select>
      </property>
      <property Name="CurrentIndex">
        <select>
          <position-of node-select="ancestor::page" list-select="/shellConfig/page[@Name != 'Home']"/>
        </select>
      </property>
    </widget>
    <widget Name="ButtongGrid" ButtonImage="blue_blank.png" Type="iPhoneUI.Widgets.ButtonGrid" Snap="Fill">
      <targetFolder>\Windows\Start Menu\Programs\Games\</targetFolder>
      <property Name="UseSmallIcons">
        <select>
          <text>//configuration[@Name='Active']/buttons/@SmallIcons</text>
        </select>
      </property>
      <property Name="ButtonSize">
        <select>
          <text>//configuration[@Name='Active']/buttons/@Size</text>
        </select>
      </property>
      <property Name="Buttons">
        <list OfType="iPhoneUI.Widgets.IImageButton"></list>
      </property>
    </widget>
  </page>
  <page Name="Office" Image="wallpaper.bmp" BackgroundAlpha="70">
    <widgetRef Name="Status">
      <property Name="Locked">false</property>
    </widgetRef>
    <property Name="PreviousPage">
      <select>
        <text>ancestor::page/preceding-sibling::page[1]/@Name</text>
      </select>
    </property>
    <property Name="NextPage">
      <select>
        <text>ancestor::page/following-sibling::page/@Name</text>
      </select>
    </property>
    <widget Name="PageNavigator" Type="iPhoneUI.Widgets.PageNavigator" Snap="Bottom">
      <property Name="Count">
        <select>
          <count>/shellConfig/page[@Name != 'Home']</count>
        </select>
      </property>
      <property Name="CurrentIndex">
        <select>
          <position-of node-select="ancestor::page" list-select="/shellConfig/page[@Name != 'Home']"/>
        </select>
      </property>
    </widget>
    <widget Name="ButtongGrid" ButtonImage="blue_blank.png" Type="iPhoneUI.Widgets.ButtonGrid" Snap="Fill">
      <!-- my htc touch has office shortcuts here -->
      <targetFolder>\Windows\Start Menu\Programs\Office Mobile\</targetFolder>
      <property Name="UseSmallIcons">
        <select>
          <text>//configuration[@Name='Active']/buttons/@SmallIcons</text>
        </select>
      </property>
      <property Name="ButtonSize">
        <select>
          <text>//configuration[@Name='Active']/buttons/@Size</text>
        </select>
      </property>
      <property Name="Buttons">
        <list OfType="iPhoneUI.Widgets.IImageButton"></list>
      </property>
    </widget>
  </page>
  <page Name="Office2" Image="wallpaper.bmp" BackgroundAlpha="70">
    <widgetRef Name="Status">
      <property Name="Locked">false</property>
    </widgetRef>
    <property Name="PreviousPage">
      <select>
        <text>ancestor::page/preceding-sibling::page[1]/@Name</text>
      </select>
    </property>
    <property Name="NextPage">
      <select>
        <text>ancestor::page/following-sibling::page/@Name</text>
      </select>
    </property>
    <widget Name="PageNavigator" Type="iPhoneUI.Widgets.PageNavigator" Snap="Bottom">
      <property Name="Count">
        <select>
          <count>/shellConfig/page[@Name != 'Home']</count>
        </select>
      </property>
      <property Name="CurrentIndex">
        <select>
          <position-of node-select="ancestor::page" list-select="/shellConfig/page[@Name != 'Home']"/>
        </select>
      </property>
    </widget>
    <widget Name="ButtongGrid" ButtonImage="blue_blank.png" Type="iPhoneUI.Widgets.ButtonGrid" Snap="Fill">
      <!-- the WM 6 Professional emulator image has office shortcuts here -->
      <targetFolder>\Windows\Start Menu\Office Mobile\</targetFolder>
      <property Name="UseSmallIcons">
        <select>
          <text>//configuration[@Name='Active']/buttons/@SmallIcons</text>
        </select>
      </property>
      <property Name="ButtonSize">
        <select>
          <text>//configuration[@Name='Active']/buttons/@Size</text>
        </select>
      </property>
      <property Name="Buttons">
        <list OfType="iPhoneUI.Widgets.IImageButton"></list>
      </property>
    </widget>
  </page>
</shellConfig>
